Optimal. Leaf size=546 \[ \frac{i b \text{PolyLog}\left (2,-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (\frac{d}{x^2}+e\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} x \sqrt{1-\frac{1}{c^2 x^2}}}\right )}{2 d^2 \sqrt{c^2 d+e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.1398, antiderivative size = 546, normalized size of antiderivative = 1., number of steps used = 24, number of rules used = 10, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.476, Rules used = {5240, 4734, 4730, 377, 205, 4742, 4520, 2190, 2279, 2391} \[ \frac{i b \text{PolyLog}\left (2,-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}+\frac{i b \text{PolyLog}\left (2,\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{c^2 d+e}+\sqrt{e}}\right )}{2 d^2}-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (\frac{d}{x^2}+e\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} x \sqrt{1-\frac{1}{c^2 x^2}}}\right )}{2 d^2 \sqrt{c^2 d+e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5240
Rule 4734
Rule 4730
Rule 377
Rule 205
Rule 4742
Rule 4520
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \sec ^{-1}(c x)}{x \left (d+e x^2\right )^2} \, dx &=-\operatorname{Subst}\left (\int \frac{x^3 \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{\left (e+d x^2\right )^2} \, dx,x,\frac{1}{x}\right )\\ &=-\operatorname{Subst}\left (\int \left (-\frac{e x \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{d \left (e+d x^2\right )^2}+\frac{x \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{d \left (e+d x^2\right )}\right ) \, dx,x,\frac{1}{x}\right )\\ &=-\frac{\operatorname{Subst}\left (\int \frac{x \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{e+d x^2} \, dx,x,\frac{1}{x}\right )}{d}+\frac{e \operatorname{Subst}\left (\int \frac{x \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{\left (e+d x^2\right )^2} \, dx,x,\frac{1}{x}\right )}{d}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}-\frac{\operatorname{Subst}\left (\int \left (-\frac{\sqrt{-d} \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{2 d \left (\sqrt{e}-\sqrt{-d} x\right )}+\frac{\sqrt{-d} \left (a+b \cos ^{-1}\left (\frac{x}{c}\right )\right )}{2 d \left (\sqrt{e}+\sqrt{-d} x\right )}\right ) \, dx,x,\frac{1}{x}\right )}{d}-\frac{(b e) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{c^2}} \left (e+d x^2\right )} \, dx,x,\frac{1}{x}\right )}{2 c d^2}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}+\frac{\operatorname{Subst}\left (\int \frac{a+b \cos ^{-1}\left (\frac{x}{c}\right )}{\sqrt{e}-\sqrt{-d} x} \, dx,x,\frac{1}{x}\right )}{2 (-d)^{3/2}}-\frac{\operatorname{Subst}\left (\int \frac{a+b \cos ^{-1}\left (\frac{x}{c}\right )}{\sqrt{e}+\sqrt{-d} x} \, dx,x,\frac{1}{x}\right )}{2 (-d)^{3/2}}-\frac{(b e) \operatorname{Subst}\left (\int \frac{1}{e-\left (-d-\frac{e}{c^2}\right ) x^2} \, dx,x,\frac{1}{\sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 c d^2}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} \sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt{c^2 d+e}}-\frac{\operatorname{Subst}\left (\int \frac{(a+b x) \sin (x)}{\frac{\sqrt{e}}{c}-\sqrt{-d} \cos (x)} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}+\frac{\operatorname{Subst}\left (\int \frac{(a+b x) \sin (x)}{\frac{\sqrt{e}}{c}+\sqrt{-d} \cos (x)} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} \sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt{c^2 d+e}}+\frac{i \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}-\sqrt{-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}+\frac{i \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}-\sqrt{-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}-\frac{i \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}+\sqrt{-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}-\frac{i \operatorname{Subst}\left (\int \frac{e^{i x} (a+b x)}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}+\sqrt{-d} e^{i x}} \, dx,x,\sec ^{-1}(c x)\right )}{2 (-d)^{3/2}}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} \sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt{c^2 d+e}}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{b \operatorname{Subst}\left (\int \log \left (1-\frac{\sqrt{-d} e^{i x}}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 d^2}+\frac{b \operatorname{Subst}\left (\int \log \left (1+\frac{\sqrt{-d} e^{i x}}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 d^2}+\frac{b \operatorname{Subst}\left (\int \log \left (1-\frac{\sqrt{-d} e^{i x}}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 d^2}+\frac{b \operatorname{Subst}\left (\int \log \left (1+\frac{\sqrt{-d} e^{i x}}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}}\right ) \, dx,x,\sec ^{-1}(c x)\right )}{2 d^2}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} \sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt{c^2 d+e}}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{(i b) \operatorname{Subst}\left (\int \frac{\log \left (1-\frac{\sqrt{-d} x}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 d^2}-\frac{(i b) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{\sqrt{-d} x}{\frac{\sqrt{e}}{c}-\frac{\sqrt{c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 d^2}-\frac{(i b) \operatorname{Subst}\left (\int \frac{\log \left (1-\frac{\sqrt{-d} x}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 d^2}-\frac{(i b) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{\sqrt{-d} x}{\frac{\sqrt{e}}{c}+\frac{\sqrt{c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(c x)}\right )}{2 d^2}\\ &=-\frac{e \left (a+b \sec ^{-1}(c x)\right )}{2 d^2 \left (e+\frac{d}{x^2}\right )}+\frac{i \left (a+b \sec ^{-1}(c x)\right )^2}{2 b d^2}-\frac{b \sqrt{e} \tan ^{-1}\left (\frac{\sqrt{c^2 d+e}}{c \sqrt{e} \sqrt{1-\frac{1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt{c^2 d+e}}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}-\frac{\left (a+b \sec ^{-1}(c x)\right ) \log \left (1+\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{Li}_2\left (-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{Li}_2\left (\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}-\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{Li}_2\left (-\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}+\frac{i b \text{Li}_2\left (\frac{c \sqrt{-d} e^{i \sec ^{-1}(c x)}}{\sqrt{e}+\sqrt{c^2 d+e}}\right )}{2 d^2}\\ \end{align*}
Mathematica [F] time = 35.0102, size = 0, normalized size = 0. \[ \int \frac{a+b \sec ^{-1}(c x)}{x \left (d+e x^2\right )^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.879, size = 3095, normalized size = 5.7 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, a{\left (\frac{1}{d e x^{2} + d^{2}} - \frac{\log \left (e x^{2} + d\right )}{d^{2}} + \frac{2 \, \log \left (x\right )}{d^{2}}\right )} + b \int \frac{\arctan \left (\sqrt{c x + 1} \sqrt{c x - 1}\right )}{e^{2} x^{5} + 2 \, d e x^{3} + d^{2} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \operatorname{arcsec}\left (c x\right ) + a}{e^{2} x^{5} + 2 \, d e x^{3} + d^{2} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \operatorname{arcsec}\left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{2} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]